package org.dromara.school.domain.vo;

import jakarta.validation.constraints.Size;
import org.dromara.school.domain.Discipline;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 学科管理视图对象 school_discipline
 *
 * @author Gjb
 * @date 2025-06-05
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Discipline.class)
public class DisciplineVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long disciplineId;


    @ExcelProperty(value = "学科名称")
    private String subjectName;
    //返回给前台 跟 excel 导入使用
    @ExcelProperty(value = "所属校区")
    private String campusName;

    private Long schoolCampusId;
    /**
     * 获取到年级
     */
    private String grade;
    @ExcelProperty(value = "适用年级")
    private String gradeName;

    @Size(min = 1,message = "适用年级不能为空")
    private String[] classYear;
    /**
     * 修改的时候使用 获取原有选中的班级
     */
    private List<String> gradesYears;

    private String remark;

}
